const mongoose = require('mongoose')
const schema = mongoose.Schema({
  create_time: { type: Number, required: true }, // 创建时间
  update_time: { type: Number, required: true }, // 最后修改时间
  name: { type: String, required: true }, // 名称
  type: { type: String, required: true }, // 显示类型
  parentId: { type: String, default: null }, // 父级ID
  desc: { type: String, default: '' }, // 备注
  to_home: { type: Boolean, default: false }, // 是否首页展示
  title: { type: String, default: '' }, // title
  description: { type: String, default: '' }, // description
  keywords: { type: String, default: '' } // keywords
})

module.exports = mongoose.model(
  'ClassificationList',
  schema,
  'classification-list'
)
